package edu.midir.demo.jdk9.interfaceTest;

import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.springframework.boot.test.rule.OutputCapture;

import static org.hamcrest.core.StringContains.containsString;
import static org.junit.Assert.assertThat;

public class AnimalEat implements Eat {
    @Rule
    public OutputCapture capture = new OutputCapture();
    @Test
    @Ignore
    public void test(){
        eat();
        assertThat(capture.toString(),containsString("yangzhieat"));
    }

    @Override
    public void eat() {
        System.out.println("animal eat");
    }




}
